<?php include 'application/views/header.php' ?>
<?php include 'application/views/left.php' ?>

<!-- BOX NEWS -->
<div class="content-box user-login">
    <div class="title">
        <div class="label">Đăng nhập</div>
        <div class="end-title"></div>
    </div>
    <!-- content -->
    <div class="user-login-content clr">
       <form id="frmLogin" method="post" action="<?php echo site_url() ?>/user/login">
            <div class="row error">
                <?php echo $this->session->flashdata('message'); ?>
            </div>
            <div class="row">
                <div class="label">Tài khoản</div>
                <div class="value"><input type="text" value="" id="username" name="username"/></div>
            </div>
            <div class="row">
                <div class="label">Mật khẩu</div>
                <div class="value"><input type="password" value="" id="password" name="password"/></div>
            </div>
            <div class="row button-set">
                <input type="submit" value="Đăng nhập" />
                <input type="reset" value="Hủy bỏ" />
            </div>
       </form>
    </div>
</div>

<?php include 'application/views/right.php' ?>
<?php include 'application/views/footer.php' ?>

 <script type="text/javascript">
    $('.user-login-content #frmLogin').validate({
       rules: {
            username : 'required',
            password : 'required'
       },
       messages: {
            username : '',
            password : ''
       } 
    });
 </script>